package com.ccys.db.dto.doctor.consultStage;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author：XLY
 * @Date：2024/3/8 0008
 */
@Data
public class UpsertPrescriptionDto {


    private Integer status;

    private List<PrescriptionVo> prescriptions;


    @JsonProperty("booking_id")
    private String bookingId;

    @JsonProperty("add_medication")
    private boolean addMedication;


    @JsonProperty("package_prescriptions")
    private Object packagePrescriptions;

    @Data
    public static class PrescriptionVo{

        private String id;    //": "048288d7-514a-4e29-a02a-846d85891290", //paracetomol - medication

        private Integer dosage;    //": 0,

        @JsonProperty("dosage_text")
        private String dosageText;    //": "DOSAGE",

        private Integer quantity;    //": 2.0,

        private Integer refill;    //": 0,

        @JsonProperty("refill_expiry_date")
        private String refillExpiryDate;    //": "1999/01/01",

        @JsonProperty("patient_instruction")
        private String patientInstruction;    //": "patient_instruction",

        @JsonProperty("pharmacist_instruction")
        private String pharmacistInstruction;    //": "pharmacist_instruction",

        private String frequency;    //": "",

        @JsonProperty("what_is_for")
        private String whatIsFor;    //": "sfdgh",

        @JsonProperty("causes_drowsiness")
        private boolean causesDrowsiness;    //": "false",

        @JsonProperty("any_precautions")
        private String anyPrecautions;    //": "Use as directed",

        private String duration;    //": null,

        @JsonProperty("duration_unit")
        private Integer durationUnit;    //": 1,

        @JsonProperty("uom_quantity")
        private String uomQuantity;    //": null,

        private boolean prn;    //": false,

        @JsonProperty("prn_reason")
        private String prnReason;    //": "",

        private String unit;    //": null,

        @JsonProperty("is_package")
        private boolean isPackage;    //": false,

        @JsonProperty("package_id")
        private String packageId;    //": null,

        @JsonProperty("step_dose")
        private String stepDose;    //": "",

        @JsonProperty("take_complete_course")
        private boolean takeCompleteCourse;    //": false,

        private String remark;    //": "kijhgf",

        @JsonProperty("product_id")
        private String productId;    //": null,

        @JsonProperty("product_name")
        private String productName;    //": null,

        @JsonProperty("product_price")
        private BigDecimal productPrice;    //": 0.0,

        @JsonProperty("index_order")
        private Integer indexOrder;    //": 1,

        @JsonProperty("is_covered_diagnosis")
        private boolean isCoveredDiagnosis;    //": false,

        @JsonProperty("remind_patient_to_call_back")
        private boolean remindPatientToCallBack;    //": false

    }


}
